<?php

class Index extends Controller {

    function __construct() {
        parent::__construct();
    }

    function index() {
        $this->view->categories = $this->model->getAllCategories();
        $this->view->items = $this->model->getAllItemsByDate();
        $this->view->render('index/index');
    }
    
    function search() {
        $this->view->categories = $this->model->getAllCategories();
        $this->view->items = $this->model->getAllItemsByDate();
        $this->view->render('index/search');
    }
    
    function view() {
        $this->view->render('index/view');
    }

}